/****** Object:  Stored Procedure dbo.spr_UpdateDBVisaTypesByPK  ******/

 use [TourIS]
 GO

 if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[spr_UpdateDBVisaTypesByPK]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
 drop procedure [dbo].[spr_UpdateDBVisaTypesByPK]
 GO

 SET QUOTED_IDENTIFIER OFF
 GO
 SET ANSI_NULLS OFF
 GO

 CREATE  PROCEDURE [dbo].[spr_UpdateDBVisaTypesByPK]
 (
	@parprice int,
	@visadays int,
	@visatypeid int,
	@visatypename varchar(50)
 )

 AS

 BEGIN
	SET NOCOUNT ON
	DECLARE @Err int

	UPDATE [VisaTypes]
	SET
		[ParPrice] = @parprice,
		[VisaDays] = @visadays,
		[VisaTypeId] = @visatypeid,
		[VisaTypeName] = @visatypename

	WHERE
	[VisaTypeId] = @visatypeid


	SET @Err = @@Error
	RETURN @Err
 END

 SET QUOTED_IDENTIFIER OFF
 GO
 SET ANSI_NULLS ON
 GO

